function clearFolder(path)
    pathList                  = dir(path);
    for fileIdx = 1:(size(pathList,1)-2)
        filename                    = fullfile(path,string(pathList(fileIdx+2).name));
        if isfile(filename)
            delete(filename);
        end
    end
end